.aiChatContainer {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100vh;
    scrollbar-width: none;
}

.chatView {
    background-color: #ebe9e9f7;
    position: relative;
    display: flex;
    width: 90%;
    min-width: 300px;
    max-width: 1000px;
    height: calc(100%-140px);
    /*100vh为暂时值，根据实际情况决定*/
    overflow: scroll;
    flex-direction: column;
    scrollbar-width: none;
    margin-top: 50px;
    margin-bottom: 90px;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.header {
    position: absolute;
    top: 0;
    background-color: rgb(80, 115, 219);
    border: #e9e9e9e8 1px solid;
    display: flex;
    width: 100%;
    height: 40px;
    justify-content: space-between;
    align-items: center;
    align-items: center;
    justify-content: start;
}

.chatItem {
    display: flex;
    width: auto;
    height: auto;
    margin: 5px;
    font-size: 15px;
    flex-direction: column;
    word-break: break-all;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}
    .chatItem.ai {
        align-self: flex-start;
        padding-left: 10px;
        padding-right: 10px;
        background-color: rgb(255, 255, 255);
    }

    .chatItem.user {
        align-self: flex-end;
        padding:8px;
        color: rgb(255, 255, 255);
        background-color: rgb(178, 175, 175);
    }

.typeBox {
    width: calc(100%);
    left: 25%;
    opacity: 0.8;
    height: 60px;
    padding: 5px;
    border: none;
    outline: none;
    font-weight: 600;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.sendButton {
    width: 40px;
    height: 40px;
    margin: 15px;
    border: none;
    border-radius: 25px;
    color: #e9e9e9;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
}

.inputContainer {
    display: flex;
    position: absolute;
    bottom: 10px;
    width: 70%;
    min-width: 300px;
    height: 70px;
    background-color: rgb(216, 241, 133);
    border-radius: 15px;
    scrollbar-width: none;
    justify-content: center;
    align-items: center;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.chatHistoryListItem {
    display: flex;
    width: 90%;
    overflow-inline: hidden;
    justify-content: center;
    background-color: #f1f0f0;
    font-size: larger;
    font-weight: 600;
    height: 40px;
    color: rgb(52, 59, 66);
    box-shadow: gray 0.5px;
    padding: 5px;
    margin: 10px;
    text-align: center;
    text-overflow: ellipsis;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}


/* Markdown内容样式 */
.ai h1 {
  font-size: 24px;
  font-weight: bold;
  margin: 16px 0 8px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.ai h2 {
  font-size: 20px;
  font-weight: bold;
  margin: 14px 0 6px 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.ai h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 12px 0 4px 0;
}

.ai p {
  margin: 8px 0;
  line-height: 1.5;
}

.ai ul, .ai ol {
  margin: 8px 0 8px 20px;
  padding: 0;
}

.ai li {
  margin: 4px 0;
}

.ai strong {
  font-weight: bold;
}

.ai em {
  font-style: italic;
}

.ai code {
  background-color: #e9e9e9;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.ai pre {
  background-color: #e9e9e9;
  padding: 12px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 12px 0;
}

.ai pre code {
  background-color: transparent;
  padding: 0;
}

.ai table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}

.ai th, .ai td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.ai th {
  background-color: #f7f7f7;
  font-weight: bold;
}

.ai blockquote {
  border-left: 4px solid #ddd;
  margin: 12px 0;
  padding: 8px 12px;
  background-color: #f9f9f9;
}